package com.heima.comment.controller;

import com.heima.comment.Service.CommentService;
import com.heima.model.comment.dto.CommentSaveDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/v1/user")
public class CommentController {
    @Resource
    private CommentService commentService;

    @PostMapping("/save")
    public ResponseResult save(@RequestBody CommentSaveDto dto) {
        return commentService.save(dto);

    }
}
